package com.sumainfor.pc.market.service;

import com.sumainfor.pc.market.dao.ViolationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 * 租客违规
 * @Auther: zhlu
 * @Date: 2019/3/7 18:09
 * @Description:
 */
@Service
public class ViolationService {

    @Autowired
    ViolationMapper ViolationMapper;

    /**
     * 功能描述: 
     * 获取租客违规分类
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/7 18:11
     */
    public List<Map<String,Object>>getViolationList(Map<String,Object>params){
        List<Map<String,Object>>getViolationList=ViolationMapper.getViolationList(params);
        return getViolationList;
    }

    /**
     * 功能描述: 
     * 根据租客违规分类编号获取租客违规内容
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/7 18:11
     */
    public List<Map<String,Object>>getViolationInfoList(Map<String,Object>params){
        List<Map<String,Object>>getViolationInfoList=ViolationMapper.getViolationInfoList(params);
        return getViolationInfoList;
    }

}
